package com.gxa.zhonglong.service.impl;

import com.gxa.zhonglong.mapper.StoneMapper;
import com.gxa.zhonglong.service.StoneService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * @author NITRO
 */

@Service("stoneService")
@Transactional(rollbackFor = {Throwable.class})
public class StoneServiceImpl  implements StoneService {

    @Autowired
    private StoneMapper stoneMapper;

    @Override
    public List<StoneMapper> getStonesNamesList() {
        return stoneMapper.selectStoneName();
    }
}
